<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	template="/layout/page/form/page-fieldset-template.xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<ui:param name="compId" value="#{commonContentViewBean.id}" />
	<ui:param name="parentViewBean" value="#{commonContentViewBean.parent}" />
	<ui:param name="compTitle" value="编辑活动转移信息" />
	<ui:param name="compToggleable" value="false" />
	
	<ui:define name="compContent">
		<p:tabView activeIndex="0" effect="opacity" effectDuration="normal">
			<c:forEach var="partViewBean" items="#{commonContentViewBean.allView}">
			<p:tab title="#{messages[partViewBean.attrs.label]}" style="margin:0;padding:0;border:0;">
				<ui:param name="partViewBean" value="#{partViewBean}" />
				<ui:include src="#{partViewBean.layout.src}" />
			</p:tab>
			</c:forEach>
		</p:tabView>
	</ui:define>
	
	<ui:define name="compButtons">
		<ui:param name="parentViewBeanId" value="#{commonContentViewBean.parent.id}" />
		<p:commandButton title="保存" value="保存"
			onstart="return SinoComponent.Bpm.Define.transitionOnStart('#{compId}_form','#{parentViewBean.id}');"
			actionListener="#{bpmAction.saveDefineTransitionAction}"
			oncomplete="#{compId}_dialog.hide();">
			<h:inputHidden value="#{compId}" />
		</p:commandButton>
		<p:commandButton title="关闭" value="关闭" type="button"
			onclick="#{compId}_dialog.hide();" />
	</ui:define>

</ui:composition>